﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microhard.Permission.Interface;
using Micrhard.FMCG.Server.Models;
using Micrhard.FMCG.Server.Interface;
using Microsoft.Practices.Unity;
using Microhard.Permission.MVCFilter;
using Micrhard.FMCG.Server.Impl;

namespace Microhard.FMCG.WebUI.Areas.Orders.Controllers
{
    public class OrderWorkSheetController : MicroHardBaseController<OrderWorkSheetModel>
    {
        private IOrderWorkSheet _resp = null;
        [Dependency]
        public IOrderWorkSheet Isl
        {
            set
            {
                base._repository = value;
                _resp = value;
            }
            get
            {
                return _resp;
            }
        }

        [MVCFilterAtrForLogon(Order = 0)]//登录验证
        [MVCFilterAtrForResourcePermission(OperationKeyName = "Update", Order = 1)]//功能权限验证
        [MVCFilterAtrForCustomeDataPermission(typeof(OrderWorkSheetPermissionVal), DataScopeactionParameterName = "scope", Order = 2)]//数据权限验证
        public ActionResult UpdateOrder(Guid identity, Core.DBUtility.ScopeResult scope)
        {
            return base.Update(identity, scope);
        }


    }
}
